<?php
/**
 * Created by PhpStorm.
 * User: papa
 * Date: 18/5/10
 * Time: 11:48
 */

namespace app\api\controller\v2;

use app\api\model\Banner;
use app\api\validate\IdMustInt;

class BannerController extends BaseController
{

    //获取指定banner信息
    public function getBanner($id)
    {
        (new IdMustInt())->goCheck();
        $data = Banner::getBanner($id);
        $this->doBack($data);
    }
}